package com.ptma.controllers;

import javax.annotation.Resource;

import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Controller;

@Controller
@PropertySource("classpath:i18n/messages.properties")
public class AbstractController {
	@Resource
	private Environment environment;

	public String getProperty(String property) {
		return environment.getProperty(property, "");
	}

}
